<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2019/12/21
 * Time: 10:21
 */

namespace app\common\model;

use think\Model;


class RedEnvelopesModel extends Model
{
    public function applyLive()
    {
        return $this->hasOne('ApplyLiveModel','id','live_id');
    }

    public function receive()
    {
        return $this->hasMany('EnvelopesReceiveModel','red_envelopes_id','id');
    }
}